It might happen that this overcautious check is done on an animation
that didn't have time to gather invalidation rectangles.
if (info->invalidation_region)
continue;
- /* There's not much point in keeping the animation running */
if (info->rectangles->len == 0)
- {
- priv->animations = g_slist_remove (priv->animations, info);
- animation_info_free (info);
- continue;
- }
+ continue;
info->invalidation_region = cairo_region_create ();
_gtk_widget_get_translation_to_window (widget, info->window, &rel_x, &rel_y);